package com.software.levelupserver.service.impl;

import com.software.levelupserver.entity.Grade;
import com.software.levelupserver.mappers.GradeMapper;
import com.software.levelupserver.service.GradeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GradeServiceImpl implements GradeService {

    @Resource
    private GradeMapper gradeMapper;

    @Override
    public List<Grade> getAllGrade() {
        List<Grade> grades = gradeMapper.selectAllGrade();

        return grades;
    }
}
